|
Ubicación en el Menú |
---|
Borrador → Utilidades → Crear proxy del plano trabajo |
Entornos de trabajo |
Borrador, Arquitectura |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
- |
Ver también |
Borrador SeleccionarPlano |
Este comando colocará un objeto Proxy de Plano alineado con el actual Plano trabajo.
Tres proxies de planos de trabajo que muestran diferentes orientaciones y rellenos
For a Draft WorkingPlaneProxy these additional options are available in the Tree view context menu:
true
o false
según desee, luego haga clic con el botón derecho en el objeto Proxy en la vista de árbol, y seleccione
See also: Property editor.
A Draft WorkingPlaneProxy object is derived from an App FeaturePython object and inherits all its properties. It also has the following additional properties:
Base
Placement
): specifies the position of the working plane proxy in the 3D view. See Placement.Shape
): specifies the shape of the working plane proxy.Base
Color
): specifies the color of all elements of the working plane proxy.Float
): specifies the line width of the axes and arrow symbols.Bool
): specifies if the VistaVisibility Map is restored when the working plane is aligned with the working plane proxy.Bool
): specifies if the VistaView Data is restored when the working plane is aligned with the working plane proxy.Percent
): specifies the transparency of the face of the working plane proxy.FloatList
): specifies the camera position and settings.Map
): specifies the visibility state of objects.Draft
Length
): specifies the size of the arrow symbols displayed at the tip of the three axes.Length
): specifies the length and width of the working plane proxy.
Ver también: Borrador API y FreeCAD Fundamentos de Guión.
Los objetos proxy del plano de trabajo se pueden utilizar en macros y desde la consola de Python utilizando la siguiente función:
If the Draft Workbench is active the FreeCAD application object has a DraftWorkingPlane
property which stores the current working plane. The Placement
from the getPlacement
method of the DraftWorkingPlane
object can be used to create an aligned working plane proxy. The Placement
of a working plane proxy in turn can be used to realign the working plane.
# This code only works if the Draft Workbench is active!
import FreeCAD as App
import FreeCADGui as Gui
import Draft
doc = App.newDocument()
workplane = App.DraftWorkingPlane
place = workplane.getPlacement()
proxy = Draft.make_workingplaneproxy(place)
proxy.ViewObject.DisplaySize = 3000
proxy.ViewObject.ArrowSize = 200
axis2 = App.Vector(1, 1, 1)
point2 = App.Vector(3000, 0, 0)
place2 = App.Placement(point2, App.Rotation(axis2, 90))
proxy2 = Draft.make_workingplaneproxy(place2)
proxy2.ViewObject.DisplaySize = 3000
proxy2.ViewObject.ArrowSize = 200
workplane.setFromPlacement(proxy2.Placement, rebase=True)
Gui.Snapper.setGrid()
doc.recompute()